import { get } from '@/utils/request';


/**
 * 授权信息
 */
export interface AuthInfo {
    authUser: string;
    authCode: string;
    expireDate: string;
    userCount: number;
    userLimit: number;
    systemVersion: string;
}

export interface AuthInfoResponse {
    code: number;
    msg: string;
    status: boolean;
    data: AuthInfo;
    fail: boolean;
}

/**
 * 获取授权信息
 * @returns 授权信息
 */
export const getAuthInfo = () => get<AuthInfoResponse>('/api/starhub/auth/authInfo');
